/*
 * @Author: dfh
 * @Date: 2024-10-17 11:27:40
 * @LastEditors: dfh
 * @Modified By: dfh
 * @describe:
 */
import { defineStore } from "pinia";
import { ref } from "vue";

export const useCounterStore = defineStore("counter", () => {
  const count = ref(0);
  const add = () => {
    count.value += 1;
  };
  return {
    count,
    add
  };
});
